class Student:
    def __init__(self, name, age):
        self.name = name
        self.__age = age
        # 私有属性，我们无法通过stu.__age来访问或修改
        # 原因是 私有属性名字被修改了 这是python类的私有属性机制实现机制，实际上是假的私有属性
        # 可以通过真正对的名字来修改和访问

    def __repr__(self):
        return f"Student[name={self.name}, age={self.__age}]"


stu = Student("lihua", 20)
print(dir(stu))
print(stu.__dir__())

print(stu)
print("stu._Student__age: ", stu._Student__age)

stu._Student__age = 100
print("stu._Student__age: ", stu._Student__age)

print(stu)

print(stu.__dict__)
print(Student.__dict__)
stu.__dict__["name"] = "zeng"
print(stu.__dict__)

d = {"name": "lihua", "age": 18}
f = (1, 2, 3)
g = [1, 2, 3, [1, 2, 3]]
print(*d)
print(*f)
print(*g)
